export default
  [
    {
      path: '',
      redirect: 'workbench'
    },
    // 数据可视化
    {
      path: 'workbench',
      name: 'landCenter/workbench',
      component: () => import('@/page/landCenter/index'),
      meta: { openKeyName: '数据可视化', selectKeyUrl: 'workbench' } // 工作台
    },
    // 车队人员管理
    {
      path: 'fleetManagement',
      name: 'landCenter/fleetManagement',
      component: () => import('@/page/landCenter/fleetManagement'),
      meta: { openKeyName: '车队人员管理', selectKeyUrl: 'fleetManagement' } // 车队管理
    },
    {
      path: 'fleetManagement/fleetOperate',
      name: 'landCenter/fleetManagement/fleetOperate',
      component: () => import('@/page/landCenter/fleetManagement/fleetOperate'),
      props: true,
      meta: { openKeyName: '车队人员管理', selectKeyUrl: 'fleetManagement' } // 车队管理 创建与编辑页面
    },
    {
      path: 'fleetManagement/:id',
      name: 'landCenter/fleetManagement/fleetDetail',
      component: () => import('@/page/landCenter/fleetManagement/fleetDetail'),
      props: true,
      meta: { openKeyName: '车队人员管理', selectKeyUrl: 'fleetManagement' } // 车队管理 详情
    },
    {
      path: 'driverManagement',
      name: 'landCenter/driverManagement',
      component: () => import('@/page/landCenter/driverManagement'),
      meta: { openKeyName: '车队人员管理', selectKeyUrl: 'driverManagement' } // 司机管理
    },
    {
      path: 'driverManagement/driverCreate',
      name: 'landCenter/driverManagement/driverCreate',
      component: () => import('@/page/landCenter/driverManagement/driverCreate'),
      meta: { openKeyName: '车队人员管理', selectKeyUrl: 'driverManagement' } // 司机管理 创建
    },
    {
      path: 'driverManagement/:id',
      name: 'landCenter/driverManagement/driverDetail',
      component: () => import('@/page/landCenter/driverManagement/driverDetail'),
      props: true,
      meta: { openKeyName: '车队人员管理', selectKeyUrl: 'driverManagement' } // 司机管理 详情
    },
    // 车辆管理
    {
      path: 'tractorManagement',
      name: 'landCenter/tractorManagement',
      component: () => import('@/page/landCenter/tractorManagement'),
      meta: { openKeyName: '车辆管理', selectKeyUrl: 'tractorManagement' } // 牵引车管理
    },
    {
      path: 'tractorManagement/tractorCreate',
      name: 'landCenter/tractorManagement/tractorCreate',
      component: () => import('@/page/landCenter/tractorManagement/tractorCreate'),
      meta: { openKeyName: '车辆管理', selectKeyUrl: 'tractorManagement' } // 牵引车管理 创建
    },
    {
      path: 'tractorManagement/:id',
      name: 'landCenter/tractorManagement/tractorDetail',
      component: () => import('@/page/landCenter/tractorManagement/tractorDetail'),
      props: true,
      meta: { openKeyName: '车辆管理', selectKeyUrl: 'tractorManagement' } // 牵引车管理 详情
    },
    {
      path: 'railerManagement',
      name: 'landCenter/railerManagement',
      component: () => import('@/page/landCenter/railerManagement'),
      meta: { openKeyName: '车辆管理', selectKeyUrl: 'railerManagement' } // 挂车管理
    },
    {
      path: 'railerManagement/railerCreate',
      name: 'landCenter/railerManagement/railerCreate',
      component: () => import('@/page/landCenter/railerManagement/railerCreate'),
      meta: { openKeyName: '车辆管理', selectKeyUrl: 'railerManagement' } // 挂车管理 创建
    },
    {
      path: 'railerManagement/:id',
      name: 'landCenter/railerManagement/railerDetail',
      component: () => import('@/page/landCenter/railerManagement/railerDetail'),
      props: true,
      meta: { openKeyName: '车辆管理', selectKeyUrl: 'railerManagement' } // 挂车管理 详情
    },
    {
      path: 'vehicleInsurance',
      name: 'landCenter/vehicleInsurance',
      component: () => import('@/page/landCenter/vehicleInsurance'),
      meta: { openKeyName: '车辆管理', selectKeyUrl: 'vehicleInsurance' } // 车辆保险
    },
    {
      path: 'vehicleInsurance/viOperation',
      name: 'landCenter/vehicleInsurance/viOperation',
      component: () => import('@/page/landCenter/vehicleInsurance/viOperation'),
      meta: { openKeyName: '车辆管理', selectKeyUrl: 'vehicleInsurance' } // 车辆保险 创建与编辑页面
    },
    // 禁区报备审核
    {
      path: 'penaltyAreaAudit',
      name: 'landCenter/vehicleViolation',
      component: () => import('@/page/landCenter/vehicleViolation'),
      meta: { openKeyName: '车辆管理', selectKeyUrl: 'penaltyAreaAudit' }
    },
    // 拖车费管理
    {
      path: 'trailerFeeManagement',
      name: 'landCenter/trailerFeeManagement',
      component: () => import('@/page/landCenter/trailerFeeManagement'),
      meta: { openKeyName: '拖车费管理', selectKeyUrl: 'trailerFeeManagement' } // 拖车费管理
    },
    // 创建拖车费
    {
      path: 'trailerFeeManagement/create',
      name: 'landCenter/trailerFeeManagement/trailerFeeDetail',
      component: () => import('@/page/landCenter/trailerFeeManagement/trailerFeeAdd'),
      meta: { openKeyName: '拖车费管理', selectKeyUrl: 'trailerFeeManagement' }
    },
    // 修改拖车费
    {
      path: 'trailerFeeManagement/edit/:id',
      name: 'landCenter/trailerFeeManagement/edit',
      component: () => import('@/page/landCenter/trailerFeeManagement/trailerFeeEdit'),
      props: true,
      meta: { openKeyName: '拖车费管理', selectKeyUrl: 'trailerFeeManagement' }
    },
    // 拖车费详情
    {
      path: 'trailerFeeManagement/detail/:id',
      name: 'landCenter/trailerFeeManagement/detail',
      component: () => import('@/page/landCenter/trailerFeeManagement/trailerFeeDetail'),
      props: true,
      meta: { openKeyName: '拖车费管理', selectKeyUrl: 'trailerFeeManagement' }
    },
    // 库存管理
    {
      path: 'refuelingAudit',
      name: 'landCenter/refuelingAudit',
      component: () => import('@/page/landCenter/refuelingAudit'),
      meta: { openKeyName: '库存管理', selectKeyUrl: 'refuelingAudit' } // 加油审核
    },
    {
      path: 'terminalManagement',
      name: 'landCenter/terminalManagement',
      component: () => import('@/page/landCenter/refuelingAudit/terminalManagement'),
      meta: { openKeyName: '库存管理', selectKeyUrl: 'terminalManagement' } // 油库管理
    },
    {
      path: 'fuelCardManagement',
      name: 'landCenter/fuelCardManagement',
      component: () => import('@/page/landCenter/refuelingAudit/fuelCardManagement'),
      meta: { openKeyName: '库存管理', selectKeyUrl: 'fuelCardManagement' } // 加油卡管理
    },
    {
      path: 'fuelCardManagement/:id',
      name: 'landCenter/fuelCardManagement/fuelCardDetail',
      component: () => import('@/page/landCenter/refuelingAudit/fuelCardDetail'),
      props: true,
      meta: { openKeyName: '库存管理', selectKeyUrl: 'fuelCardManagement' } // 加油卡管理 - 明细
    },
    {
      path: 'fuelConsumptionOfOtherBusinesses',
      name: 'landCenter/fuelConsumptionOfOtherBusinesses',
      component: () => import('@/page/landCenter/refuelingAudit/fuelConsumptionOfOtherBusinesses'),
      meta: { openKeyName: '库存管理', selectKeyUrl: 'fuelConsumptionOfOtherBusinesses' } // 其他业务油耗
    },
    {
      path: 'fuelCardAllAccount',
      name: 'landCenter/fuelCardAllAccount',
      component: () => import('@/page/landCenter/refuelingAudit/fuelCardAllAccount'),
      meta: { openKeyName: '库存管理', selectKeyUrl: 'fuelCardAllAccount' } // 加油卡总账户
    },
    {
      path: 'etcManagement',
      name: 'landCenter/etcManagement',
      component: () => import('@/page/landCenter/refuelingAudit/etcManagement'),
      meta: { openKeyName: '库存管理', selectKeyUrl: 'etcManagement' } // 加油卡总账户
    },
    {
      path: 'wholeOilOutManagement',
      name: 'landCenter/wholeOilOutManagement',
      component: () => import('@/page/landCenter/refuelingAudit/wholeOilOutManagement'),
      meta: { openKeyName: '库存管理', selectKeyUrl: 'wholeOilOutManagement' } // 总耗油
    },
    // 销售管理
    {
      path: 'createBussinessOrder',
      name: 'landCenter/createBusinessOrder',
      component: () => import('@/page/landCenter/salesManagement'),
      meta: { openKeyName: '销售管理', selectKeyUrl: 'createBussinessOrder' } // 创建业务单
    },
    {
      path: 'saleManage',
      name: 'landCenter/saleManage',
      component: () => import('@/page/landCenter/salesManagement/saleManage'),
      meta: { openKeyName: '销售管理', selectKeyUrl: 'saleManage' } // sale管理
    },
    {
      path: 'customManage',
      name: 'landCenter/customerManagement',
      component: () => import('@/page/landCenter/salesManagement/customManage'),
      meta: { openKeyName: '销售管理', selectKeyUrl: 'customManage' } // 客户管理
    },
    {
      path: 'customManageOperation',
      name: 'landCenter/customManageOperation',
      component: () => import('@/page/landCenter/salesManagement/customManageOperation'),
      meta: { openKeyName: '销售管理', selectKeyUrl: 'customManage' } // 客户管理 新增与编辑
    },
    {
      path: 'customManage/:id',
      name: 'landCenter/customManageDetail',
      component: () => import('@/page/landCenter/salesManagement/customManageDetail'),
      props: true,
      meta: { openKeyName: '销售管理', selectKeyUrl: 'customManage' } // 客户管理 查看
    },
    {
      path: 'orderManage',
      name: 'landCenter/orderManage',
      component: () => import('@/page/landCenter/salesManagement/orderManage'),
      meta: { openKeyName: '销售管理', selectKeyUrl: 'orderManage' } // order管理
    },
    {
      path: 'orderManage/:id',
      name: 'landCenter/salesManagement/orderDetail',
      component: () => import('@/page/landCenter/salesManagement/orderManageDetail'),
      props: true,
      meta: { openKeyName: '销售管理', selectKeyUrl: 'orderManage' } // 销售订单详情
    },
    {
      path: 'orderManageEdit/:id',
      name: 'landCenter/salesManagement/orderMangeEdit',
      component: () => import('@/page/landCenter/salesManagement/orderManageEdit'),
      props: true,
      meta: { openKeyName: '销售管理', selectKeyUrl: 'orderManage' } // 销售订单重新编辑
    },
    // 订单管理
    {
      path: 'orderAudit',
      name: 'landCenter/orderAudit',
      component: () => import('@/page/landCenter/orderManagement'),
      meta: { openKeyName: '订单管理', selectKeyUrl: 'orderAudit' } // 订单审核
    },
    {
      path: 'doOrderAudit/:id',
      name: 'landCenter/doOrderAudit',
      component: () => import('@/page/landCenter/orderManagement/doOrderAudit'),
      props: true,
      meta: { openKeyName: '订单管理', selectKeyUrl: 'orderAudit' } // 订单审核详情
    },
    {
      path: 'orderDispatch',
      name: 'landCenter/orderDispatch',
      component: () => import('@/page/landCenter/orderManagement/orderDispatch'),
      meta: { openKeyName: '订单管理', selectKeyUrl: 'orderDispatch' } // 订单调度
    },
    {
      path: 'orderDispatch/:id',
      name: 'landCenter/orderDispatchDetail',
      component: () => import('@/page/landCenter/orderManagement/orderDispatchDetail'),
      props: true,
      meta: { openKeyName: '订单管理', selectKeyUrl: 'orderDispatch' } // 订单调度详情
    },
    {
      path: 'dispatchMonitor',
      name: 'landCenter/dispatchMonitor',
      component: () => import('@/page/landCenter/orderManagement/dispatchMonitor'),
      meta: { openKeyName: '订单管理', selectKeyUrl: 'dispatchMonitor' } // 订单监控
    },
    // // 数据字典
    // {
    //   path: 'vehicleType',
    //   name: 'landCenter/vehicleType',
    //   component: () => import('@/page/landCenter/vehicleType'),
    //   meta: {openKeyName: '数据字典', selectKeyUrl: 'vehicleType'} // 车辆类型
    // },
    // {
    //   path: 'brandModel',
    //   name: 'landCenter/brandModel',
    //   component: () => import('@/page/landCenter/brandModel'),
    //   meta: {openKeyName: '数据字典', selectKeyUrl: 'brandModel'} // 品牌型号
    // },
    // 结算对象管理
    {
      path: 'receivableExpenseType',
      name: 'landCenter/receivableExpenseType',
      component: () => import('@/page/landCenter/settlementObjectManagement/receivableExpenseType'),
      meta: { openKeyName: '结算对象管理', selectKeyUrl: 'receivableExpenseType' } // 应收费用类型
    },
    {
      path: 'payableExpenseType',
      name: 'landCenter/payableExpenseType',
      component: () => import('@/page/landCenter/settlementObjectManagement/payableExpenseType'),
      meta: { openKeyName: '结算对象管理', selectKeyUrl: 'payableExpenseType' } // 应付费用类型
    },
    {
      path: 'receivableSettlementObject',
      name: 'landCenter/receivableSettlementObject',
      component: () => import('@/page/landCenter/settlementObjectManagement/receivableSettlementObject'),
      meta: { openKeyName: '结算对象管理', selectKeyUrl: 'receivableSettlementObject' } // 应收结算对象
    },
    {
      path: 'receivableSettlementObject/receivableSettlementObjectoperation',
      name: 'landCenter/receivableSettlementObject/receivableSettlementObjectoperation',
      component: () => import('@/page/landCenter/settlementObjectManagement/receivableSettlementObjectoperation'),
      meta: { openKeyName: '结算对象管理', selectKeyUrl: 'receivableSettlementObject' } // 应收结算对象
    },
    {
      path: 'receivableSettlementObject/:id',
      name: 'landCenter/receivableSettlementObjectDetail',
      component: () => import('@/page/landCenter/settlementObjectManagement/receivableSettlementObjectDetail'),
      props: true,
      meta: { openKeyName: '结算对象管理', selectKeyUrl: 'receivableSettlementObject' } // 应收结算对象
    },
    {
      path: 'payableSettlementObject',
      name: 'landCenter/payableSettlementObject',
      component: () => import('@/page/landCenter/settlementObjectManagement/payableSettlementObject'),
      meta: { openKeyName: '结算对象管理', selectKeyUrl: 'payableSettlementObject' } // 应付结算对象
    },
    {
      path: 'payableSettlementObject/payableSettlementObjectOperation',
      name: 'landCenter/payableSettlementObjectOperation',
      component: () => import('@/page/landCenter/settlementObjectManagement/payableSettlementObjectOperation'),
      meta: { openKeyName: '结算对象管理', selectKeyUrl: 'payableSettlementObject' } // 应付结算对象
    },
    {
      path: 'payableSettlementObject/:id',
      name: 'landCenter/payableSettlementObjectDetail',
      component: () => import('@/page/landCenter/settlementObjectManagement/payableSettlementObjectDetail'),
      props: true,
      meta: { openKeyName: '结算对象管理', selectKeyUrl: 'payableSettlementObject' } // 应付结算对象
    },
    // 字典
    {
      path: 'vehicleType',
      name: 'landCenter/dictionary/vehicleType',
      component: () => import('@/page/landCenter/dictionary/vehicleType'),
      meta: { openKeyName: '数据字典', selectKeyUrl: 'vehicleType' }
    },
    {
      path: 'vehicleBrand',
      name: 'landCenter/dictionary/vehicleBrand',
      component: () => import('@/page/landCenter/dictionary/vehicleBrand'),
      meta: { openKeyName: '数据字典', selectKeyUrl: 'vehicleBrand' }
    },
    {
      path: 'appDispatchTel',
      name: 'landCenter/dictionary/appDispatchTel',
      component: () => import('@/page/landCenter/dictionary/appDispatchTel'),
      meta: { openKeyName: '数据字典', selectKeyUrl: 'appDispatchTel' }
    },
    {
      path: 'changeOrderRecord',
      name: 'landCenter/changeOrderRecord',
      component: () => import('@/page/landCenter/orderManagement/changeOrderRecord'),
      meta: { openKeyName: '订单管理', selectKeyUrl: 'changeOrderRecord' }
    },
    {
      path: 'dailyOilStatistics',
      name: 'landCenter/dailyOilStatistics',
      component: () => import('@/page/landCenter/refuelingAudit/dailyOilStatistics'),
      meta: { openKeyName: '库存管理', selectKeyUrl: 'dailyOilStatistics' }
    },
    {
      // 此处必须写在正常route最后
      path: '*',
      component: () => import('@/page/404')
    }
  ]
